package com.potenza.training.dictionary.controller;

import com.potenza.training.dictionary.entity.HopeStatus;
import com.potenza.training.dictionary.server.HopeStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/hope")
public class HopeStatusController {

    @Autowired
    private HopeStatusService hopeStatusService;

    /**
     * 获取所有的期望职位
     * @return
     */
    @GetMapping("/status")
    public List<HopeStatus> findAll(){
        return hopeStatusService.findAll();
    }

}
